package com.jiejie.service.impl;

import com.jiejie.commons.ServerResponse;
import com.jiejie.entity.Flow;
import com.jiejie.entity.Hall;
import com.jiejie.entity.Order;
import com.jiejie.mapper.FlowMapper;
import com.jiejie.mapper.HallMapper;
import com.jiejie.mapper.OrderMapper;
import com.jiejie.service.IFlowService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 辰广
 * @since 2022-10-05
 */
@Service
public class FlowServiceImpl extends ServiceImpl<FlowMapper, Flow> implements IFlowService {

    @Resource
    private OrderMapper orderMapper;
    @Override
    public Integer updateOrder(Order order) {
        order.setOrderStatus(1);
        Integer row=orderMapper.updateById(order);
        return row;
    }
}
